package com.lanyou.cook.entity.kettle;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "R_JOBENTRY_ATTRIBUTE")
public class KettleJobEntryAttribute {

	private long id;
	private String code;
	private String valueStr;
	private KettleJob job;
	private KettleJobEntry jobEntry;
	
	@Id
	@Column(name="ID_JOBENTRY_ATTRIBUTE")
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name="VALUE_STR")
	public String getValueStr() {
		return valueStr;
	}

	public void setValueStr(String valueStr) {
		this.valueStr = valueStr;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ID_JOB")
	public KettleJob getJob() {
		return job;
	}

	public void setJob(KettleJob job) {
		this.job = job;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ID_JOBENTRY")
	public KettleJobEntry getJobEntry() {
		return jobEntry;
	}

	public void setJobEntry(KettleJobEntry jobEntry) {
		this.jobEntry = jobEntry;
	}

}
